﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ObjManager : MonoBehaviour
{

    [Header("Movie")]
    [SerializeField]
    private GameObject m_movieObj;

    [Header("Game")]
    [SerializeField]
    private GameObject m_gameObj;

    public GameObject ui_title { get { return m_ui_title; } }
    [SerializeField]
    private GameObject m_ui_title;
    public GameObject ui_game { get { return m_ui_game; } }
    [SerializeField]
    private GameObject m_ui_game;
    [SerializeField]
    private GameObject m_ui_over;

    private void Awake()
    {
        m_movieObj.gameObject.SetActive(false);
        m_gameObj.gameObject.SetActive(false);

        m_ui_title.gameObject.SetActive(false);
        m_ui_game.gameObject.SetActive(false);
        m_ui_over.gameObject.SetActive(false);
    }

    public void ActiveMovie()
    {
        m_movieObj.gameObject.SetActive(true);
        m_gameObj.gameObject.SetActive(false);

        m_ui_title.gameObject.SetActive(false);
        m_ui_game.gameObject.SetActive(false);
        m_ui_over.gameObject.SetActive(false);
    }

    public void ActiveTitle()
    {
        m_movieObj.gameObject.SetActive(false);
        m_gameObj.gameObject.SetActive(true);

        m_ui_title.gameObject.SetActive(true);
        m_ui_game.gameObject.SetActive(false);
        m_ui_over.gameObject.SetActive(false);
    }

    public void ActiveGame()
    {
        m_movieObj.gameObject.SetActive(false);
        m_gameObj.gameObject.SetActive(true);

        m_ui_title.gameObject.SetActive(false);
        m_ui_game.gameObject.SetActive(true);
        m_ui_over.gameObject.SetActive(false);
    }

    public void ActiveOver()
    {
        m_movieObj.gameObject.SetActive(false);
        m_gameObj.gameObject.SetActive(true);

        m_ui_title.gameObject.SetActive(false);
        m_ui_game.gameObject.SetActive(false);
        m_ui_over.gameObject.SetActive(true);
    }

}
